<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无效图片管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/admin-style.css' />
<script language="JavaScript" type="text/javascript" charset="utf-8" src="__PUBLIC__/jquery/jquery-1.7.2.min.js"></script>
<script language="JavaScript" type="text/javascript" charset="utf-8" src="__PUBLIC__/js/admin.js"></script>
<script language="javascript">
$(document).ready(function(){
	$feifeicms.show.table();
	$(".del").click(function(){
		$(this).after(" <a id='loading' style='display:none;cursor: hand;'>loading...</a>");
		$ajaxurl = $(this).attr('href');
		$(this).ajaxStart(function(){
			$('#loading').show();
		});
		$.get($ajaxurl,null,function(data){
			$("#loading").html(' <font color=#gxl6600>'+data+'</font> ');
			window.setTimeout(function(){
				$("#loading").remove();
				location.reload();//刷新当前页面
			},2000);
		});
		return false;
	});
});
</script>
</head>
<body class="body">
<table border="0" cellpadding="0" cellspacing="0" class="table">
  <thead>
    <tr class="ct">
      <th class="l"><span style="float:left">无效图片清理</span>文件夹名/文件名</th>
      <th class="l" width="80">文件大小</th>
      <th class="l" width="150">修改时间</th>
      <th class="l" width="150">相关操作</th>
    </tr>
  </thead>
<notempty name="dirlast"> 
  <tbody>  
  <tr class="firstalt">
  <td colspan="5" class="r pd"><img src="__PUBLIC__/images/file/last.gif"> <a href="?s=Admin-Pic-Show-id-{$dirlast}">上级目录</a> 当前目录: {$dirpath}</td>
  </tr>
  </tbody>
</notempty>
  <volist name="list_dir" id="gxlnews">
  <eq name="gxlnews.isDir" value="1">
  <tbody> 
  <tr>
  	<td class="l pd"><img src="__PUBLIC__/images/file/folder.gif" width="16" height="16"> <a href="?s=Admin-Pic-Show-id-{$gxlnews.pathfile}">{$gxlnews.filename}</a></td>
    <td class="l ct">{:byte_format(getdirsize($gxlnews['path'].'/'.$gxlnews['filename']))}</td>
    <td class="l ct">{$gxlnews.mtime|getcolordate='Y-m-d H:i:s',###}</td>
    <td class="l ct"><a href="?s=Admin-Pic-Show-id-{:str_replace('/','|',$gxlnews['path'])}|{:str_replace('-','*',$gxlnews['filename'])}">下级目录</a> <a href="?s=Admin-Pic-Ajaxpic-id-{$gxlnews.path}/{:str_replace('-','*',$gxlnews['filename'])}" class="del">清理</a></td>
  </tr>
  </tbody>
  <else />
  <tbody>
  <tr>
  	<in name="gxlnews.ext" value="jpg,gif,js,css,html,htm,php">
    <td class="l pd"><img src="__PUBLIC__/images/file/{$gxlnews.ext}.gif" width="16" height="16"> {$gxlnews.filename}</td>
    <else />
    <td class="l pd"><img src="__PUBLIC__/images/file/other.gif" width="16" height="16"> {$gxlnews.filename}</td>
    </in>
    <td class="l ct">{$gxlnews.size|byte_format}</td>
    <td class="l ct">{$gxlnews.mtime|getcolordate='Y-m-d H:i:s',###}</td>
    <td class="r ct"><a href="{$gxlnews.path}/{$gxlnews.filename}" target="_blank">浏览</a> <a href="?s=Admin-Pic-Del-id-{$gxlnews.path}/{:str_replace('-','*',$gxlnews['filename'])}" onClick="return confirm('确定删除该文件吗?')">删除</a></td>
  </tr>
  </tbody>
  </eq>  
  </volist>        
</table>
<include file="./Public/system/footer.html" />
</body>
</html>